import { HttpGet, HttpPost } from "@/api/index"

/**
 * 获取验证码图片
 * @returns {Promise<axios.AxiosResponse<*>>}
 * @constructor
 */
export const GetCaptcha = () => {
    return HttpGet("/admin/getCaptcha")
}

/**
 * 登陆
 * @param adminUserLogin
 * @constructor
 */
export const Login = (adminUserLogin) => {
   return HttpPost("/admin/login", adminUserLogin)
}